import React from 'react'
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';

// 创建 Stack 导航器
const SplashNavigator = createStackNavigator()

// 引入管理封面页和主页
import IndexPage from './pages/main/Index'
import SplashPage from './pages/Splash'


const App = () => {
  return (
    <NavigationContainer>
      <SplashNavigator.Navigator headerMode="none">
        {/* 封面页跳转 */}
        {/* <SplashNavigator.Screen name='Splash' component={SplashPage} /> */}
        <SplashNavigator.Screen name='Index' component={IndexPage} />
      </SplashNavigator.Navigator>
    </NavigationContainer>
  )
}

export default App

// const styles = StyleSheet.create({})
